/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('../picture/F2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #333;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* 背景渐变遮罩 */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: -1;
}

/* 考研院校预测结果页面样式 */
.result-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  text-align: center;
  color: #1976d2;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1976d2;
  border-bottom: 3px solid #1976d2;
  padding-bottom: 0.8rem;
  position: relative;
}

.menu-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #ff9800;
}

.section-title {
  font-size: 1.2rem;
  color: #555;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

/* 个人信息区域 */
.user-info-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.user-info-section:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.user-info-section>div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-info-section>div>div {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-info-section>div>div:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info-section>div>div p:first-child {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #666;
}

.user-info-section>div>div p:last-child {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 500;
}

/* 成绩概况区域 */
.score-overview {
  background: #1976d2;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.score-table th {
  background-color: #1976d2;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.score-table td {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  text-align: center;
  transition: background-color 0.2s ease;
}

.score-table td:nth-child(odd) {
  font-weight: 500;
}

.score-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.score-table tr:hover td {
  background-color: #e3f2fd;
}

/* 学生卡片列表 */
.recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  justify-items: center;
}

.student-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 380px;
  transition: all 0.3s ease;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}

.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1976d2, #ff9800);
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
}

.student-rank {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.student-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 3rem 0 1.5rem 0;
  color: #333;
  text-align: center;
}

.student-info {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  padding-left: 0.5rem;
  border-left: 2px solid #e0e0e0;
  transition: border-color 0.3s ease;
}

.student-card:hover .student-info {
  border-left-color: #1976d2;
}

.student-tag {
  display: inline-block;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.student-tag:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  transform: translateY(-2px);
}

/* 提示框样式 */
.user-info-section+div {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.user-info-section+div p {
  color: #e65100;
  font-size: 0.95rem;
  font-weight: 500;
}

/* 底部按钮容器样式 - 与上方卡片对齐 */
.bottom-buttons-container {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  justify-items: center;
}

/* 功能按钮样式 */
.function-btn {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 300px; /* 调长按钮 */
  text-align: center;
  white-space: nowrap;
}

.function-btn:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* 返回按钮样式 */
.back-btn {
  display: block;
  width: 300px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px; 

}

.back-btn:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .result-container {
    padding: 2rem;
    margin: 1rem;
  }

  .recommendation-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .user-info-section>div {
    flex-direction: column;
    gap: 1rem;
  }

  .recommendation-list {
    grid-template-columns: 1fr;
  }

  .score-table th,
  .score-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .back-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .result-container {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .menu-title {
    font-size: 1.1rem;
  }

  .student-card {
    padding: 1.5rem;
    min-height: 350px;
  }
}